<div class="product-item-view left" style="text-align:center;">
    <div style="width:160px;padding:10px;">
        <?php
//             $path = Yii::app()->params['uploadProductPath'];
//             $img = $path.date('Y',$data->file_created).'/'.date('m',$data->file_created).'/'.date('d',$data->file_created).'/'.$data->file_links.'_thumb.'.$data->file_ext;
//             $img2 = $path.date('Y',$data->file_created).'/'.date('m',$data->file_created).'/'.date('d',$data->file_created).'/'.$data->file_links.'.'.$data->file_ext;
//             echo CHtml::link(CHtml::image($img,$data->file_name),$img2,array('rel'=>'colorbox','title'=>$data->file_name,'id'=>$img2,'onclick'=>'productShow()'));

			$img = File::model()->generateFilePath($data, 1);

			echo CHtml::link(CHtml::image($img,$data->file_name),$img2,array('rel'=>'colorbox','title'=>$data->file_name,'id'=>$img2,'onclick'=>'productShow()'));

         ?>
    <hr class="space" />
    <div style="text-align:center;"><?php echo UtilTools::strSlice($data->file_name,0,15);?></div>
    <hr class="space" />    
    </div>

</div>